package com.hzit.mmcb.core.service;

import com.hzit.common.result.PageResult;
import com.hzit.mmcb.core.pojo.dto.BorrowerDetailDTO;
import com.hzit.mmcb.core.pojo.entity.Borrower;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hzit.mmcb.core.pojo.vo.BorrowerApprovalVO;
import com.hzit.mmcb.core.pojo.vo.BorrowerVO;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 借款人 服务类
 * </p>
 *
 * @author ljh
 * @since 2024-08-27
 */
public interface BorrowerService extends IService<Borrower> {

    void saveBorrowerVOByUserId(BorrowerVO vo, Long userId);

    Integer getStatus(Long userId);

    PageResult<Borrower> listPage(Integer page, Integer limit, String keyword);

    BorrowerDetailDTO getDetailById(Integer id);

    void approval(BorrowerApprovalVO borrowerApprovalVO);

    BigDecimal getBorrowAmount(Long userId);
    String getDictName(Integer value, String dictCode);
}
